This is a DEMO routine with source code that will calculate the default printer's lines per page under the declared FONTNAME and FONTSIZE. It will also a allow the user to ABORT the print job, thereby flushing the printer buffer.
I created this routine as part of a larger project where I have pages of information to print , and found that the PRINT routines currently within VBASIC were very limited. I offer no warranties either actual or implied, release this routine freely into the PUBLIC DOMAIN.
Please use it and have fun. Microsoft should use a routine like this to print the SOURCE code. Does any one know how to read the *.FRM and *.BAS files so that I can have nice formatted output of my program files ???
USAGE: Copy the following files in the VBASIC sub-directory and run either the EXE file or call up VBASIC and select the DEMO.Mak file, and run it from within VBASIC
CancPRT.bas - Global declarations file
CancPRT.frm - Form displayed during printing
Demo.frm - very simple front-end to the routine
Delay.bas - sub-routine file containing the DELAY code - allows the ABORT
message to be read before returning
DEMO.exe - executable version of the routine
Demo.mak - VBASIC make file
PP.txt - data file to print - REQUIRED to be in the VBASIC
sub-directory if running from within VBASIC or if running the
executable then it has to be in the same directory as the
executable
Send any feedback via CompuServe my ID is 72537,163 - Ed Obeda